package de.zefania.api.impl;

import org.w3c.dom.Document;

import de.zefania.api.BibleModul;
import de.zefania.api.BibleText;
import de.zefania.api.BibleView;
import de.zefania.api.Position;
import de.zefania.api.Transformer;

public class BibleViewImpl implements BibleView {
	private BibleModul[] moduls;
	private Position position;
	private Document[] docs;
	
	public BibleViewImpl(final Position position, final BibleModul[] moduls) {
		this.moduls = moduls;
		this.position = position;
		this.docs = new Document[moduls.length];
		for (int i = 0; i<moduls.length;i++) {
			docs[i] = moduls[i].getBibleText(position);
		}
			
	}

	@Override
	public final BibleText getBibleText(final int i) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public final BibleModul[] getModulList() {		
		return this.moduls;
	}

	@Override
	public final Position getPosition() {
		return this.position;
	}

	@Override
	public final String transform(final Transformer transformer) {
		return transformer.transform(docs);
	}
}
